package com.hx.abstract1.impl;

import com.hx.abstract1.IPhoneProduct;
import com.hx.abstract1.IProductFactory;
import com.hx.abstract1.IRouterProduct;
import com.hx.abstract1.impl.XiaomiPhone;
import com.hx.abstract1.impl.XiaomiRouter;

/**
 * @Author： Huathy
 * @ClassPath： com.hx.abstract1.impl.XiaomiFactory
 * @Date： 2021-01-28 15:06
 * @Description：
 */
public class XiaomiFactory implements IProductFactory {
    @Override
    public IPhoneProduct iPhoneProduct() {
        return new XiaomiPhone();
    }

    @Override
    public IRouterProduct iRouterProduct() {
        return new XiaomiRouter();
    }
}
